package com.campus.campus.job.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 水电费消耗记录表
 * </p>
 *
 * @author author
 * @since 2024-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("utility_consumption_record")
@ApiModel(value="UtilityConsumptionRecord对象", description="水电费消耗记录表")
public class UtilityConsumptionRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "校园卡ID")
    private Integer campusCardId;

    @ApiModelProperty(value = "扣减费用")
    private BigDecimal deductionAmount;

    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "扣减时间")
    private LocalDateTime deductionTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
